package inputjadwal.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="TB_MataKuliah")
public class MataKuliah {
    @Id
    private Long id;

    @Id
    @ManyToOne
    @JoinColumn(name="nama_MataKuliah")
    private String namaMataKuliah;

    @Id
    @ManyToOne
    @JoinColumn(name="jumlah_SKS")
    private Integer jumlahSKS;

    @Id
    @ManyToOne
    @JoinColumn(name="kode_Pelajaran")
    private String kodePelajaran;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getJumlahSKS() {
        return jumlahSKS;
    }

    public void setJumlahSKS(Integer jumlahSKS) {
        this.jumlahSKS = jumlahSKS;
    }

    public String getKodePelajaran() {
        return kodePelajaran;
    }

    public void setKodePelajaran(String kodePelajaran) {
        this.kodePelajaran = kodePelajaran;
    }

    public String getNamaMataKuliah() {
        return namaMataKuliah;
    }

    public void setNamaMataKuliah(String namaMataKuliah) {
        this.namaMataKuliah = namaMataKuliah;
    }

}
